/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.recharge;

import com.thinkgem.jeesite.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 充值记录Entity
 * @author dai
 * @version 2018-11-18
 */
public class ResRechargeHis extends DataEntity<ResRechargeHis> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户
	private Double rechargeAmount;		// 充值金额
	private Double preBalance;		// 充值前金额
	private Double afterBalance;		// 值后金额
	
	public ResRechargeHis() {
		super();
	}

	public ResRechargeHis(String id){
		super(id);
	}

	@NotNull(message="用户不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@NotNull(message="充值金额不能为空")
	public Double getRechargeAmount() {
		return rechargeAmount;
	}

	public void setRechargeAmount(Double rechargeAmount) {
		this.rechargeAmount = rechargeAmount;
	}
	
	@NotNull(message="充值前金额不能为空")
	public Double getPreBalance() {
		return preBalance;
	}

	public void setPreBalance(Double preBalance) {
		this.preBalance = preBalance;
	}
	
	@NotNull(message="值后金额不能为空")
	public Double getAfterBalance() {
		return afterBalance;
	}

	public void setAfterBalance(Double afterBalance) {
		this.afterBalance = afterBalance;
	}
	
}